package com.gao.frame.study.shop.config.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "order_cart")
public class OrderCart {
    /**
     * 购物车ID
     */
     @TableId(value = "cart_id", type = IdType.AUTO)
    private Integer cartId;

    /**
     * 用户ID
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 商品ID
     */
    @TableField(value = "product_id")
    private Integer productId;

    /**
     * 加入购物车商品数量
     */
    @TableField(value = "product_amount")
    private Integer productAmount;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 加入购物车时间
     */
    @TableField(value = "add_time")
    private Date addTime;

    /**
     * 最后修改时间
     */
    @TableField(value = "modified_time")
    private Date modifiedTime;

    public static final String COL_CUSTOMER_ID = "customer_id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_PRODUCT_AMOUNT = "product_amount";

    public static final String COL_PRICE = "price";

    public static final String COL_ADD_TIME = "add_time";

    public static final String COL_MODIFIED_TIME = "modified_time";
}